from typing import Annotated
from fastapi import APIRouter, Depends, Request

from sanren.utils import get_current_active_user
from application.http import models
from application.http.schemas import ApiSchemas
from application.http import schemas


router = APIRouter(prefix='/profile', tags=['Profile'])
module_name = '个人信息'


@router.get('/', response_model=schemas.BaseApiOut)
async def profile(
    current_user: Annotated[object, Depends(get_current_active_user)],
    request: Request,
):
    """
        获取个人信息
    """

    return {'data': current_user}
